class GoogleSearchEngine < SearchEngine
	
		def initialize(obj_ref, wlist, bsize)
			super(obj_ref, wlist, bsize)
		end #init
		
		def search(num_of_pages)
			super(num_of_pages)
			for query in @searchString
				q = GScraper::Search.query(:query => query)
        $logger.debug("GoogleSearchEngine") {q.page(0).urls}
				i = 0
				$num_of_pages.times do
					q.each_on_page(i) do |result|
						@tmpList << result.url
					end # do
					i = i + 1
				end #for
			end # for
			@urlManager.add_urls(@tmpList)
			return @urlManager 								# return list of result page urls
		end #search
		
end #class
